package cn.migu.music.hangupsms.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

@Data
@RefreshScope
@Component
@ConfigurationProperties(prefix = "sftp")
public class SftpHostConfig {
    /**
     * host
     */
    private String  host;
    /**
     * 端口
     */
    private Integer port;
    /**
     * 用户名
     */
    private String  userName;
    /**
     * 密码
     */
    private String  passwd;
    /**
     * 允许导出的分省配置，多个|隔开
     */
    private final String  localIdFilter    = "14";
    /**
     * 本地目录
     */
    private final String  localDir         = "/tmp/CQ";
    /**
     * 压缩密码前缀
     */
    private final String  compressPdPrefix = "CMCCMIGU";
    /**
     * 压缩文件前缀
     */
    private final String  outFilePrefix    = "CLJZ_I_";
    /**
     * txt文件拆分行数阈值，10万
     */
    private final Integer txtSplitNumLimit = 100000;
    /**
     * sftp文件目录
     */
    private final String  remoteDir        = "/home/cqiop_ftp/cljz";
    /**
     * 每次扫描条数
     */
    private final Integer scanLimit        = 100;
}
